package com.nsi.o2o.dto;

import com.nsi.o2o.entity.Shop;
import com.nsi.o2o.enums.ShopStateEnum;

import java.util.List;

/**
 * @author: Luo Zhen
 * @date: 2018/9/7 10:18
 * @description:
 */
public class ShopExecution {

    private Integer state;

    private String stateInfo;

    private int count;

    private Shop shop;

    private List<Shop> shopList;

    public ShopExecution() {

    }

    /**
     * 店铺操作失败的时候使用的构造器
     *
     * @param sateEnum
     */
    public ShopExecution(ShopStateEnum sateEnum) {
        this.state = sateEnum.getState();
        this.stateInfo = sateEnum.getStateInfo();
    }

    /**
     * 成功构造器
     *
     * @param sateEnum
     * @param shop
     */
    public ShopExecution(ShopStateEnum sateEnum, Shop shop) {
        this.state = sateEnum.getState();
        this.stateInfo = sateEnum.getStateInfo();
        this.shop = shop;
    }

    /**
     * 成功构造器
     *
     * @param sateEnum
     * @param shopList
     */
    public ShopExecution(ShopStateEnum sateEnum, List<Shop> shopList) {
        this.state = sateEnum.getState();
        this.stateInfo = sateEnum.getStateInfo();
        this.shopList = shopList;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public List<Shop> getShopList() {
        return shopList;
    }

    public void setShopList(List<Shop> shopList) {
        this.shopList = shopList;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
